<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('妙手订单信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>平台包裹id：</label>
                                <input type="text" name="opOrderPackageId"/>
                            </li>
                            <li>
                                <label>店铺id：</label>
                                <input type="text" name="shopId"/>
                            </li>
                            <li>
                                <label>平台订单id：</label>
                                <input type="text" name="opOrderId"/>
                            </li>
                            <li>
                                <label>平台包裹编码：</label>
                                <input type="text" name="platformPackageId"/>
                            </li>
                            <li>
                                <label>平台包裹编码：</label>
                                <input type="text" name="appPackageNo"/>
                            </li>
                            <li>
                                <label>平台包裹编码：</label>
                                <input type="text" name="platformPackageNo"/>
                            </li>
                            <li>
                                <label>货代授权id：</label>
                                <input type="text" name="logisticsAgentAuthId"/>
                            </li>
                            <li>
                                <label>货代产品id：</label>
                                <input type="text" name="logisticsAgentProductId"/>
                            </li>
                            <li>
                                <label>商品数量：</label>
                                <input type="text" name="itemQuantity"/>
                            </li>
                            <li>
                                <label>商品种类：</label>
                                <input type="text" name="itemVariety"/>
                            </li>
                            <li>
                                <label>是否隔离件：</label>
                                <input type="text" name="isIsolation"/>
                            </li>
                            <li>
                                <label>是否已发货：</label>
                                <input type="text" name="isShipped"/>
                            </li>
                            <li>
                                <label>物流公司编码：</label>
                                <input type="text" name="logisticsNo"/>
                            </li>
                            <li>
                                <label>物流公司名称：</label>
                                <input type="text" name="logisticsCompany"/>
                            </li>
                            <li>
                                <label>物流方式：</label>
                                <input type="text" name="logisticsMethod"/>
                            </li>
                            <li>
                                <label>头程物流公司编码：</label>
                                <input type="text" name="headLogisticsNo"/>
                            </li>
                            <li>
                                <label>头程物流公司名称：</label>
                                <input type="text" name="headLogisticsCompany"/>
                            </li>
                            <li>
                                <label>头程物流公司id：</label>
                                <input type="text" name="headLogisticsCompanyId"/>
                            </li>
                            <li>
                                <label>运货单方式：</label>
                                <input type="text" name="waybillOssPath"/>
                            </li>
                            <li>
                                <label>平台运货单格式：</label>
                                <input type="text" name="platformWaybillFormat"/>
                            </li>
                            <li>
                                <label>isApplyTrackingNoFail：</label>
                                <input type="text" name="isApplyTrackingNoFail"/>
                            </li>
                            <li>
                                <label>备注：</label>
                                <input type="text" name="appNote"/>
                            </li>
                            <li>
                                <label>预报包裹金额：</label>
                                <input type="text" name="predictPackAmount"/>
                            </li>
                            <li>
                                <label>审计时间：</label>
                                <input type="text" class="time-input" placeholder="请选择审计时间" name="gmtAudit"/>
                            </li>
                            <li>
                                <label>物流商方式：</label>
                                <input type="text" name="getLogisticsNoMethod"/>
                            </li>
                            <li>
                                <label>申请物流单时间：</label>
                                <input type="text" class="time-input" placeholder="请选择申请物流单时间" name="gmtApplyLogisticsNo"/>
                            </li>
                            <li>
                                <label>获取物流单时间：</label>
                                <input type="text" class="time-input" placeholder="请选择获取物流单时间" name="gmtGetLogisticsNo"/>
                            </li>
                            <li>
                                <label>打印运货单时间：</label>
                                <input type="text" class="time-input" placeholder="请选择打印运货单时间" name="gmtPrintWaybill"/>
                            </li>
                            <li>
                                <label>打印拣货清单时间：</label>
                                <input type="text" class="time-input" placeholder="请选择打印拣货清单时间" name="gmtPrintPickingList"/>
                            </li>
                            <li>
                                <label>最后收货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后收货时间" name="gmtLastDelivery"/>
                            </li>
                            <li>
                                <label>收货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择收货时间" name="gmtDelivery"/>
                            </li>
                            <li>
                                <label>订单完成时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单完成时间" name="gmtFinish"/>
                            </li>
                            <li>
                                <label>订单隔离时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单隔离时间" name="gmtIsolation"/>
                            </li>
                            <li>
                                <label>订单创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单创建时间" name="gmtCreate"/>
                            </li>
                            <li>
                                <label>订单修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单修改时间" name="gmtModified"/>
                            </li>
                            <li>
                                <label>具备发货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择具备发货时间" name="gmtReadyToShip"/>
                            </li>
                            <li>
                                <label>平台：</label>
                                <input type="text" name="platform"/>
                            </li>
                            <li>
                                <label>站点：</label>
                                <input type="text" name="site"/>
                            </li>
                            <li>
                                <label>平台订单号：</label>
                                <input type="text" name="platformOrderSn"/>
                            </li>
                            <li>
                                <label>店铺名称简写：</label>
                                <input type="text" name="shopNick"/>
                            </li>
                            <li>
                                <label>店铺名称：</label>
                                <input type="text" name="platformShopName"/>
                            </li>
                            <li>
                                <label>全球店铺id：</label>
                                <input type="text" name="masterPlatformShopId"/>
                            </li>
                            <li>
                                <label>平台店铺id：</label>
                                <input type="text" name="platformShopId"/>
                            </li>
                            <li>
                                <label>平台名称：</label>
                                <input type="text" name="platformName"/>
                            </li>
                            <li>
                                <label>站点名称：</label>
                                <input type="text" name="siteName"/>
                            </li>
                            <li>
                                <label>投送失败原因：</label>
                                <input type="text" name="shipFailReason"/>
                            </li>
                            <li>
                                <label>申请运单号失败原因：</label>
                                <input type="text" name="applyTrackingNoFailReason"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="ms:MsPackage:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ms:MsPackage:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ms:MsPackage:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ms:MsPackage:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ms:MsPackage:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ms:MsPackage:remove')}]];
        var prefix = ctx + "ms/MsPackage";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "妙手订单信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'msPackageId',
                    title: '表的id',
                    visible: false
                },
                {
                    field: 'opOrderPackageId',
                    title: '平台包裹id'
                },
                {
                    field: 'shopId',
                    title: '店铺id'
                },
                {
                    field: 'opOrderId',
                    title: '平台订单id'
                },
                {
                    field: 'platformPackageId',
                    title: '平台包裹编码'
                },
                {
                    field: 'appPackageNo',
                    title: '平台包裹编码'
                },
                {
                    field: 'platformPackageNo',
                    title: '平台包裹编码'
                },
                {
                    field: 'logisticsAgentAuthId',
                    title: '货代授权id'
                },
                {
                    field: 'logisticsAgentProductId',
                    title: '货代产品id'
                },
                {
                    field: 'platformPackageStatus',
                    title: '平台包裹状态'
                },
                {
                    field: 'appPackageStatus',
                    title: '平台包裹状态'
                },
                {
                    field: 'appPackageOperateStatus',
                    title: '平台包裹状态'
                },
                {
                    field: 'appPurchaseStatus',
                    title: '采购状态'
                },
                {
                    field: 'itemQuantity',
                    title: '商品数量'
                },
                {
                    field: 'itemVariety',
                    title: '商品种类'
                },
                {
                    field: 'isIsolation',
                    title: '是否隔离件'
                },
                {
                    field: 'isShipped',
                    title: '是否已发货'
                },
                {
                    field: 'logisticsNo',
                    title: '物流公司编码'
                },
                {
                    field: 'logisticsCompany',
                    title: '物流公司名称'
                },
                {
                    field: 'logisticsMethod',
                    title: '物流方式'
                },
                {
                    field: 'logisticsType',
                    title: '物流类型'
                },
                {
                    field: 'headLogisticsNo',
                    title: '头程物流公司编码'
                },
                {
                    field: 'headLogisticsCompany',
                    title: '头程物流公司名称'
                },
                {
                    field: 'headLogisticsCompanyId',
                    title: '头程物流公司id'
                },
                {
                    field: 'waybillOssPath',
                    title: '运货单方式'
                },
                {
                    field: 'platformWaybillFormat',
                    title: '平台运货单格式'
                },
                {
                    field: 'isApplyTrackingNoFail',
                    title: 'isApplyTrackingNoFail'
                },
                {
                    field: 'virtualShipmentStatus',
                    title: '虚拟货物状态'
                },
                {
                    field: 'appSplitStatus',
                    title: '平台拆弹状态'
                },
                {
                    field: 'appNote',
                    title: '备注'
                },
                {
                    field: 'predictPackAmount',
                    title: '预报包裹金额'
                },
                {
                    field: 'appPostForwarderStatus',
                    title: '平台投送状态'
                },
                {
                    field: 'gmtAudit',
                    title: '审计时间'
                },
                {
                    field: 'getLogisticsNoMethod',
                    title: '物流商方式'
                },
                {
                    field: 'status',
                    title: '状态'
                },
                {
                    field: 'gmtApplyLogisticsNo',
                    title: '申请物流单时间'
                },
                {
                    field: 'gmtGetLogisticsNo',
                    title: '获取物流单时间'
                },
                {
                    field: 'gmtPrintWaybill',
                    title: '打印运货单时间'
                },
                {
                    field: 'gmtPrintPickingList',
                    title: '打印拣货清单时间'
                },
                {
                    field: 'gmtLastDelivery',
                    title: '最后收货时间'
                },
                {
                    field: 'gmtDelivery',
                    title: '收货时间'
                },
                {
                    field: 'gmtFinish',
                    title: '订单完成时间'
                },
                {
                    field: 'gmtIsolation',
                    title: '订单隔离时间'
                },
                {
                    field: 'gmtCreate',
                    title: '订单创建时间'
                },
                {
                    field: 'gmtModified',
                    title: '订单修改时间'
                },
                {
                    field: 'gmtReadyToShip',
                    title: '具备发货时间'
                },
                {
                    field: 'platform',
                    title: '平台'
                },
                {
                    field: 'site',
                    title: '站点'
                },
                {
                    field: 'platformOrderSn',
                    title: '平台订单号'
                },
                {
                    field: 'shopNick',
                    title: '店铺名称简写'
                },
                {
                    field: 'platformShopName',
                    title: '店铺名称'
                },
                {
                    field: 'masterPlatformShopId',
                    title: '全球店铺id'
                },
                {
                    field: 'platformShopId',
                    title: '平台店铺id'
                },
                {
                    field: 'platformName',
                    title: '平台名称'
                },
                {
                    field: 'siteName',
                    title: '站点名称'
                },
                {
                    field: 'shipFailReason',
                    title: '投送失败原因'
                },
                {
                    field: 'applyTrackingNoFailReason',
                    title: '申请运单号失败原因'
                },
                {
                    field: 'applyTrackingNoFailReasonType',
                    title: '申请运单号失败原因类型'
                },
                {
                    field: 'forwarderProcessStatus',
                    title: '运送出来状态'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.msPackageId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.msPackageId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>